package com.quanyan.user.model.vo.request;

import com.quanyan.BaseRequest;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户绑定请求参数
 * Created by zhang on 16/11/24.
 */
public class ReqUserBinding extends BaseRequest implements Serializable{

    @NotNull
    private String phone;

    private String validCode;

    @NotNull
    private String openId;

    @NotNull
    private String unionId;
    //绑定类型：1为微信账号绑定，2为微信openId绑定
    private int type;

    /**
     * 第三方昵称
     */
    private String thirdNickname;

    /**
     * 第三方图像
     */
    private String thirdIcon;

    /**
     * 第三方性别 1：男 2：女 0:未知
     */
    private Byte thirdGender;


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getValidCode() {
        return validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getThirdNickname() {
        return thirdNickname;
    }

    public void setThirdNickname(String thirdNickname) {
        this.thirdNickname = thirdNickname;
    }

    public String getThirdIcon() {
        return thirdIcon;
    }

    public void setThirdIcon(String thirdIcon) {
        this.thirdIcon = thirdIcon;
    }

    public Byte getThirdGender() {
        return thirdGender;
    }

    public void setThirdGender(Byte thirdGender) {
        this.thirdGender = thirdGender;
    }
}
